package xyz.lwm.lazycat.netpipe.service.impl;

import xyz.lwm.lazycat.annotation.Inject;
import xyz.lwm.lazycat.netpipe.domain.entity.ProxyConfig;
import xyz.lwm.lazycat.netpipe.mapper.ProxyConfigMapper;
import xyz.lwm.lazycat.netpipe.service.ProxyConfigService;
import xyz.lwm.lazycat.web.annocation.Service;

import java.util.List;

/**
 * @author lwm
 */
@Service
class ProxyConfigServiceImpl implements ProxyConfigService {

    @Inject
    private ProxyConfigMapper proxyConfigMapper;

    @Override
    public ProxyConfigMapper getMapper() {
        return proxyConfigMapper;
    }

    @Override
    public List<ProxyConfig> list(String userId) {
        return getMapper().list(userId);
    }

}
